import './index.less'
import ProForm, {
    ProFormDependency,
    ProFormFieldSet,
    ProFormSelect,
    ProFormText,
} from '@ant-design/pro-form';
import { ILCComponentConfig, ILCComponentType, ILCBaseProps } from '@/lib/interface/ILCInterface';
import ComponentUtil from '@/lib/utils/componentUtil';

export interface ILCInputProps {

}

const InternalLCInput: React.FC<ILCBaseProps<ILCInputProps>> = (props) => {
    return <ProFormText {...props} />
}

const LCInput: ILCComponentConfig<ILCInputProps> = {
    component: InternalLCInput,
    name: "单行输入框",
    type: ILCComponentType.INPUT,
    defaultProps: () => {
        return (
            {
                name: ComponentUtil.buildComponentId(),
                label: "单行输入框",
                rules: [{ required: true }]
            }
        )
    }
}



export default LCInput;